import BaseFindApi from '@/api/baseFindApi';
import {PARAMS} from '@/api/http';
import LoginLog from '@/structure/loginLog';

/**
 * 登录记录
 */
class LoginLogApi extends BaseFindApi<LoginLog> {
  public getBase(): string {
    return 'user/user/loginLog';
  }

  /**
   * 导出excel
   * @param params 参数
   * @return 响应
   */
  public exportExcel(params: PARAMS): Promise<Blob> {
    return super.get0(`${this.getBase()}/exportExcel`, {
      responseType: 'blob',
      params
    });
  }
}

export default new LoginLogApi();
